﻿
namespace WordMaster
{
    public class TaskInfo
    {
        public string Name { get; }
        public string Title { get; }
        public string Description { get; }
        public object[] Parameters { get; }

        public TaskInfo() { }

        public TaskInfo(string name, string title, string description)
        {
            Name = name;
            Title = title;
            Description = description;
        }

        public TaskInfo(string name, string title, string description, object[] parameters)
        {
            Name = name;
            Title = title;
            Description = description;
            Parameters = parameters;
        }

        public override string ToString()
        {
            return string.IsNullOrEmpty(Title) ? base.ToString() : Title + (string.IsNullOrEmpty(Description) ? "" : (" - " + Description));
        }
    }
}
